webpackJsonp([18],{

/***/ 0:
/***/ (function(module, exports, __webpack_require__) {


window._ = __webpack_require__(2);

/**
 * We'll load jQuery and the Bootstrap jQuery plugin which provides support
 * for JavaScript based Bootstrap features such as modals and tabs. This
 * code may be modified to fit the specific needs of your application.
 */

/*try {
    window.$ = window.jQuery = require('jquery');

    require('bootstrap-sass');
} catch (e) {}*/

/**
 * We'll load the axios HTTP library which allows us to easily issue requests
 * to our Laravel back-end. This library automatically handles sending the
 * CSRF token as a header based on the value of the "XSRF" token cookie.
 */

window.axios = __webpack_require__(3);

window.axios.defaults.headers.common['X-Requested-With'] = 'XMLHttpRequest';

/**
 * Next we will register the CSRF Token as a common header with Axios so that
 * all outgoing HTTP requests automatically have it attached. This is just
 * a simple convenience so we don't have to attach every token manually.
 */

var token = document.head.querySelector('meta[name="csrf-token"]');

if (token) {
  window.axios.defaults.headers.common['X-CSRF-TOKEN'] = token.content;
} else {
  console.error('CSRF token not found: https://laravel.com/docs/csrf#csrf-x-csrf-token');
}

/**
 * Echo exposes an expressive API for subscribing to channels and listening
 * for events that are broadcast by Laravel. Echo and event broadcasting
 * allows your team to easily build robust real-time web applications.
 */

// import Echo from 'laravel-echo'

// window.Pusher = require('pusher-js');

// window.Echo = new Echo({
//     broadcaster: 'pusher',
//     key: 'your-pusher-key'
// });

/***/ }),

/***/ 1:
/***/ (function(module, exports) {

//设置toastr选项
toastr.options = {
    "closeButton": true,
    "debug": false,
    "progressBar": true,
    "preventDuplicates": false,
    "positionClass": "toast-top-right",
    "onclick": null,
    "showDuration": "400",
    "hideDuration": "1000",
    "timeOut": "1000",
    "extendedTimeOut": "1000",
    "showEasing": "swing",
    "hideEasing": "linear",
    "showMethod": "fadeIn",
    "hideMethod": "fadeOut"
};
window.utils = {
    /**
     *
     * @param data json响应数据
     * @param loadtag 载入标签
     */
    showToastr: function showToastr(data) {
        var loadtag = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';

        switch (data.status) {
            case 'success':
                toastr.success(data.message, data.title);
                break;
            case 'error':
                toastr.error(data.message, data.title);
                break;
            case 'info':
                toastr.info(data.message, data.title);
                break;
            default:
                toastr.warning(data.message, data.title);
                break;
        }
        if (data.status == 'success') {
            switch (loadtag) {
                case 'reload':
                    utils.reload(data.jumpTime);
                    break;
                case 'goback':
                    utils.goback(data.jumpTime);
                    break;
                case 'go':
                    if (data.url) {
                        utils.redirect(data.url, data.jumpTime);
                    }
                    break;
                default:
                    break;
            }
        }
    },
    bootstraptableOptions: {
        url: '', //请求地址
        method: 'get', //请求方式（*）
        toolbar: '#toolbar', //工具按钮用哪个容器
        striped: true, //是否显示行间隔色
        cache: false, //是否使用缓存，默认为true，所以一般情况下需要设置一下这个属性（*）
        pagination: true, //是否显示分页（*）
        sortable: false, //是否启用排序
        sortOrder: "asc", //排序方式
        sidePagination: "server", //分页方式：client客户端分页，server服务端分页（*）
        pageNumber: 1, //初始化加载第一页，默认第一页
        pageSize: 10, //每页的记录行数（*）
        pageList: [10, 25, 50, 100], //可供选择的每页的行数（*）
        paginationFirstText: "首页",
        paginationPreText: "上一页", //分页条中上一页按钮的图标或文字
        paginationNextText: "下一页", //分页条中下一页按钮的图标或文字
        paginationLastText: "尾页",
        queryParamsType: "", //limit:获取页面偏移量offset和页面大小pageSize,"":获取当前页数pageNumber和页面大小pageSize
        responseHandler: function responseHandler(response) {
            return {
                rows: response.data,
                total: response.total
            };
        },
        search: false, //是否显示表格搜索，此搜索是客户端搜索，不会进服务端，所以，个人感觉意义不大
        contentType: "application/x-www-form-urlencoded",
        strictSearch: true,
        showColumns: true, //是否显示所有的列
        showRefresh: true, //是否显示刷新按钮
        minimumCountColumns: 2, //最少允许的列数
        clickToSelect: true, //是否启用点击选中行
        uniqueId: "no", //每一行的唯一标识，一般为主键列
        showToggle: true, //是否显示详细视图和列表视图的切换按钮
        cardView: false, //是否显示详细视图
        detailView: false, //是否显示父子表
        icons: {
            refresh: 'fa fa-refresh',
            detailOpen: 'fa fa-tasks',
            toggle: 'fa fa-exchange'
        },
        onLoadSuccess: function onLoadSuccess(res) {
            //加载成功时执行
            layer.msg("加载成功", { time: 1000 });
        },
        onLoadError: function onLoadError() {
            //加载失败时执行
            layer.msg("加载数据失败");
        }
    },
    /**
     * 确认框
     * @param url
     * @param data
     * @param title
     * @param content
     */
    confirm: function confirm(url) {
        var data = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
        var callback = arguments[2];
        var title = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : '你确定删除么？';
        var content = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : '删除后将无法恢复';

        layer.confirm(content, { icon: 3, title: title }, function (index) {
            axios.post(url, data).then(function (response) {
                if (callback) {
                    callback.call(null, response, data);
                } else {
                    utils.showToastr(response.data, 'go');
                }
            }).catch(function (error) {
                if (error.response) {
                    utils.showToastr({
                        'status': 'error',
                        'title': error.response.title,
                        'message': error.response.message
                    });
                } else if (error.request) {
                    console.log(error.request);
                } else {
                    utils.showToastr({ 'status': 'error', 'title': '请求错误', 'message': error });
                }
            });

            layer.close(index);
        });
    },
    /**
     * 页面跳转，重定向
     * @param url 跳转链接
     * @param times 等待时间
     */
    redirect: function redirect(url) {
        var times = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1000;

        if (times > 0) {
            setTimeout(function () {
                window.location.href = url;
            }, times);
        } else {
            window.location.href = url;
        }
    },
    /**
     * 页面刷新
     * @param times 等待时间
     */
    reload: function reload() {
        var times = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 1000;

        if (times) {
            setTimeout(function () {
                window.location.reload();
            }, times);
        } else {
            window.location.reload();
        }
    },
    /**
     * 页面返回
     * @param times 等待时间
     */
    goback: function goback() {
        var times = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 1000;

        if (times) {
            setTimeout(function () {
                window.history.back(-1);
            }, times);
        } else {
            window.history.back(-1);
        }
    },
    /**
     * 异步post请求
     * @param posturl
     * @param data
     * @param callback
     */
    ajaxPost: function ajaxPost(posturl) {
        var data = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
        var callback = arguments[2];

        axios.post(posturl, data).then(function (response) {
            if (callback) {
                callback.call(null, response, data);
            } else {
                utils.showToastr(response.data, 'go');
            }
        }).catch(function (error) {
            if (error.response) {
                utils.showToastr({
                    'status': 'error',
                    'title': error.response.title,
                    'message': error.response.message
                });
            } else if (error.request) {
                console.log(error.request);
            } else {
                utils.showToastr({ 'status': 'error', 'title': '请求错误', 'message': error });
            }
        });
    },
    /**
     * 异步get请求
     * @param posturl
     * @param data
     * @param callback
     */
    ajaxGet: function ajaxGet(geturl) {
        var data = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
        var callback = arguments[2];

        axios.get(geturl, {
            params: data
        }).then(function (response) {
            if (callback) {
                callback.call(null, response, data);
            } else {
                utils.showToastr(response.data, 'go');
            }
        }).catch(function (error) {
            if (error.response) {
                utils.showToastr({
                    'status': 'error',
                    'title': error.response.title,
                    'message': error.response.message
                });
            } else if (error.request) {
                console.log(error.request);
            } else {
                utils.showToastr({ 'status': 'error', 'title': '请求错误', 'message': error });
            }
        });
    },
    /**
     * 异步提交表单
     * @param posturl
     * @param data
     */
    ajaxSubmitForm: function ajaxSubmitForm(form, posturl) {
        var otherData = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
        var callback = arguments[3];

        var params = $(form).serializeArray();
        var formData = {};
        for (x in params) {
            formData[params[x].name] = params[x].value;
        }
        var postdata = _.merge(formData, otherData);
        posturl = posturl ? posturl : $(form).attr('action');
        if (!posturl) {
            console.log('表单提交路径为空');
        }
        axios.post(posturl, postdata).then(function (response) {
            if (callback) {
                callback.call(null, response, postdata);
            } else {
                utils.showToastr(response.data, 'go');
            }
        }).catch(function (error) {
            if (error.response) {
                utils.showToastr({
                    'status': 'error',
                    'title': error.response.title,
                    'message': error.response.message
                });
            } else if (error.request) {
                console.log(error.request);
            } else {
                utils.showToastr({ 'status': 'error', 'title': '请求错误', 'message': error });
            }
        });
    }
};

/***/ }),

/***/ 45:
/***/ (function(module, exports, __webpack_require__) {

module.exports = __webpack_require__(46);


/***/ }),

/***/ 46:
/***/ (function(module, exports, __webpack_require__) {

/**
 * 载入项目引导文件
 */
__webpack_require__(0);

/**
 * 载入自定义工具
 */

__webpack_require__(1);

var box = void 0;
var asxBox = void 0;
var nowNode = void 0;
//图标列表
var fa_icons = {
    '网页': ['fa fa-address-book', 'fa fa-address-book-o', 'fa fa-address-card', 'fa fa-address-card-o', 'fa fa-adjust', 'fa fa-american-sign-language-interpreting', 'fa fa-anchor', 'fa fa-archive', 'fa fa-area-chart', 'fa fa-arrows', 'fa fa-arrows-h', 'fa fa-arrows-v', 'fa fa-asl-interpreting', 'fa fa-assistive-listening-systems', 'fa fa-asterisk', 'fa fa-at', 'fa fa-audio-description', 'fa fa-automobile', 'fa fa-balance-scale', 'fa fa-ban', 'fa fa-bank', 'fa fa-bar-chart', 'fa fa-bar-chart-o', 'fa fa-barcode', 'fa fa-bars', 'fa fa-bath', 'fa fa-bathtub', 'fa fa-battery', 'fa fa-battery-0', 'fa fa-battery-1', 'fa fa-battery-2', 'fa fa-battery-3', 'fa fa-battery-4', 'fa fa-battery-empty', 'fa fa-battery-full', 'fa fa-battery-half', 'fa fa-battery-quarter', 'fa fa-battery-three-quarters', 'fa fa-bed', 'fa fa-beer', 'fa fa-bell', 'fa fa-bell-o', 'fa fa-bell-slash', 'fa fa-bell-slash-o', 'fa fa-bicycle', 'fa fa-binoculars', 'fa fa-birthday-cake', 'fa fa-blind', 'fa fa-bluetooth', 'fa fa-bluetooth-b', 'fa fa-bolt', 'fa fa-bomb', 'fa fa-book', 'fa fa-bookmark', 'fa fa-bookmark-o', 'fa fa-braille', 'fa fa-briefcase', 'fa fa-bug', 'fa fa-building', 'fa fa-building-o', 'fa fa-bullhorn', 'fa fa-bullseye', 'fa fa-bus', 'fa fa-cab', 'fa fa-calculator', 'fa fa-calendar', 'fa fa-calendar-check-o', 'fa fa-calendar-minus-o', 'fa fa-calendar-o', 'fa fa-calendar-plus-o', 'fa fa-calendar-times-o', 'fa fa-camera', 'fa fa-camera-retro', 'fa fa-car', 'fa fa-caret-square-o-down', 'fa fa-caret-square-o-left', 'fa fa-caret-square-o-right', 'fa fa-caret-square-o-up', 'fa fa-cart-arrow-down', 'fa fa-cart-plus', 'fa fa-cc', 'fa fa-certificate', 'fa fa-check', 'fa fa-check-circle', 'fa fa-check-circle-o', 'fa fa-check-square', 'fa fa-check-square-o', 'fa fa-child', 'fa fa-circle', 'fa fa-circle-o', 'fa fa-circle-o-notch', 'fa fa-circle-thin', 'fa fa-clock-o', 'fa fa-clone', 'fa fa-close', 'fa fa-cloud', 'fa fa-cloud-download', 'fa fa-cloud-upload', 'fa fa-code', 'fa fa-code-fork', 'fa fa-coffee', 'fa fa-cog', 'fa fa-cogs', 'fa fa-comment', 'fa fa-comment-o', 'fa fa-commenting', 'fa fa-commenting-o', 'fa fa-comments', 'fa fa-comments-o', 'fa fa-compass', 'fa fa-copyright', 'fa fa-creative-commons', 'fa fa-credit-card', 'fa fa-credit-card-alt', 'fa fa-crop', 'fa fa-crosshairs', 'fa fa-cube', 'fa fa-cubes', 'fa fa-cutlery', 'fa fa-dashboard', 'fa fa-database', 'fa fa-deaf', 'fa fa-deafness', 'fa fa-desktop', 'fa fa-diamond', 'fa fa-dot-circle-o', 'fa fa-download', 'fa fa-drivers-license', 'fa fa-drivers-license-o', 'fa fa-edit', 'fa fa-ellipsis-h', 'fa fa-ellipsis-v', 'fa fa-envelope', 'fa fa-envelope-o', 'fa fa-envelope-open', 'fa fa-envelope-open-o', 'fa fa-envelope-square', 'fa fa-eraser', 'fa fa-exchange', 'fa fa-exclamation', 'fa fa-exclamation-circle', 'fa fa-exclamation-triangle', 'fa fa-external-link', 'fa fa-external-link-square', 'fa fa-eye', 'fa fa-eye-slash', 'fa fa-eyedropper', 'fa fa-fax', 'fa fa-feed', 'fa fa-female', 'fa fa-fighter-jet', 'fa fa-file-archive-o', 'fa fa-file-audio-o', 'fa fa-file-code-o', 'fa fa-file-excel-o', 'fa fa-file-image-o', 'fa fa-file-movie-o', 'fa fa-file-pdf-o', 'fa fa-file-photo-o', 'fa fa-file-picture-o', 'fa fa-file-powerpoint-o', 'fa fa-file-sound-o', 'fa fa-file-video-o', 'fa fa-file-word-o', 'fa fa-file-zip-o', 'fa fa-film', 'fa fa-filter', 'fa fa-fire', 'fa fa-fire-extinguisher', 'fa fa-flag', 'fa fa-flag-checkered', 'fa fa-flag-o', 'fa fa-flash', 'fa fa-flask', 'fa fa-folder', 'fa fa-folder-o', 'fa fa-folder-open', 'fa fa-folder-open-o', 'fa fa-frown-o', 'fa fa-futbol-o', 'fa fa-gamepad', 'fa fa-gavel', 'fa fa-gear', 'fa fa-gears', 'fa fa-gift', 'fa fa-glass', 'fa fa-globe', 'fa fa-graduation-cap', 'fa fa-group', 'fa fa-hand-grab-o', 'fa fa-hand-lizard-o', 'fa fa-hand-paper-o', 'fa fa-hand-peace-o', 'fa fa-hand-pointer-o', 'fa fa-hand-rock-o', 'fa fa-hand-scissors-o', 'fa fa-hand-spock-o', 'fa fa-hand-stop-o', 'fa fa-handshake-o', 'fa fa-hard-of-hearing', 'fa fa-hashtag', 'fa fa-hdd-o', 'fa fa-headphones', 'fa fa-heart', 'fa fa-heart-o', 'fa fa-heartbeat', 'fa fa-history', 'fa fa-home', 'fa fa-hotel', 'fa fa-hourglass', 'fa fa-hourglass-1', 'fa fa-hourglass-2', 'fa fa-hourglass-3', 'fa fa-hourglass-end', 'fa fa-hourglass-half', 'fa fa-hourglass-o', 'fa fa-hourglass-start', 'fa fa-i-cursor', 'fa fa-id-badge', 'fa fa-id-card', 'fa fa-id-card-o', 'fa fa-image', 'fa fa-inbox', 'fa fa-industry', 'fa fa-info', 'fa fa-info-circle', 'fa fa-institution', 'fa fa-key', 'fa fa-keyboard-o', 'fa fa-language', 'fa fa-laptop', 'fa fa-leaf', 'fa fa-legal', 'fa fa-lemon-o', 'fa fa-level-down', 'fa fa-level-up', 'fa fa-life-bouy', 'fa fa-life-buoy', 'fa fa-life-ring', 'fa fa-life-saver', 'fa fa-lightbulb-o', 'fa fa-line-chart', 'fa fa-location-arrow', 'fa fa-lock', 'fa fa-low-vision', 'fa fa-magic', 'fa fa-magnet', 'fa fa-mail-forward', 'fa fa-mail-reply', 'fa fa-mail-reply-all', 'fa fa-male', 'fa fa-map', 'fa fa-map-marker', 'fa fa-map-o', 'fa fa-map-pin', 'fa fa-map-signs', 'fa fa-meh-o', 'fa fa-microchip', 'fa fa-microphone', 'fa fa-microphone-slash', 'fa fa-minus', 'fa fa-minus-circle', 'fa fa-minus-square', 'fa fa-minus-square-o', 'fa fa-mobile', 'fa fa-mobile-phone', 'fa fa-money', 'fa fa-moon-o', 'fa fa-mortar-board', 'fa fa-motorcycle', 'fa fa-mouse-pointer', 'fa fa-music', 'fa fa-navicon', 'fa fa-newspaper-o', 'fa fa-object-group', 'fa fa-object-ungroup', 'fa fa-paint-brush', 'fa fa-paper-plane', 'fa fa-paper-plane-o', 'fa fa-paw', 'fa fa-pencil', 'fa fa-pencil-square', 'fa fa-pencil-square-o', 'fa fa-percent', 'fa fa-phone', 'fa fa-phone-square', 'fa fa-photo', 'fa fa-picture-o', 'fa fa-pie-chart', 'fa fa-plane', 'fa fa-plug', 'fa fa-plus', 'fa fa-plus-circle', 'fa fa-plus-square', 'fa fa-plus-square-o', 'fa fa-podcast', 'fa fa-power-off', 'fa fa-print', 'fa fa-puzzle-piece', 'fa fa-qrcode', 'fa fa-question', 'fa fa-question-circle', 'fa fa-question-circle-o', 'fa fa-quote-left', 'fa fa-quote-right', 'fa fa-random', 'fa fa-recycle', 'fa fa-refresh', 'fa fa-registered', 'fa fa-remove', 'fa fa-reorder', 'fa fa-reply', 'fa fa-reply-all', 'fa fa-retweet', 'fa fa-road', 'fa fa-rocket', 'fa fa-rss', 'fa fa-rss-square', 'fa fa-s15', 'fa fa-search', 'fa fa-search-minus', 'fa fa-search-plus', 'fa fa-send', 'fa fa-send-o', 'fa fa-server', 'fa fa-share', 'fa fa-share-alt', 'fa fa-share-alt-square', 'fa fa-share-square', 'fa fa-share-square-o', 'fa fa-shield', 'fa fa-ship', 'fa fa-shopping-bag', 'fa fa-shopping-basket', 'fa fa-shopping-cart', 'fa fa-shower', 'fa fa-sign-in', 'fa fa-sign-language', 'fa fa-sign-out', 'fa fa-signal', 'fa fa-signing', 'fa fa-sitemap', 'fa fa-sliders', 'fa fa-smile-o', 'fa fa-snowflake-o', 'fa fa-soccer-ball-o', 'fa fa-sort', 'fa fa-sort-alpha-asc', 'fa fa-sort-alpha-desc', 'fa fa-sort-amount-asc', 'fa fa-sort-amount-desc', 'fa fa-sort-asc', 'fa fa-sort-desc', 'fa fa-sort-down', 'fa fa-sort-numeric-asc', 'fa fa-sort-numeric-desc', 'fa fa-sort-up', 'fa fa-space-shuttle', 'fa fa-spinner', 'fa fa-spoon', 'fa fa-square', 'fa fa-square-o', 'fa fa-star', 'fa fa-star-half', 'fa fa-star-half-empty', 'fa fa-star-half-full', 'fa fa-star-half-o', 'fa fa-star-o', 'fa fa-sticky-note', 'fa fa-sticky-note-o', 'fa fa-street-view', 'fa fa-suitcase', 'fa fa-sun-o', 'fa fa-support', 'fa fa-tablet', 'fa fa-tachometer', 'fa fa-tag', 'fa fa-tags', 'fa fa-tasks', 'fa fa-taxi', 'fa fa-television', 'fa fa-terminal', 'fa fa-thermometer', 'fa fa-thermometer-0', 'fa fa-thermometer-1', 'fa fa-thermometer-2', 'fa fa-thermometer-3', 'fa fa-thermometer-4', 'fa fa-thermometer-empty', 'fa fa-thermometer-full', 'fa fa-thermometer-half', 'fa fa-thermometer-quarter', 'fa fa-thermometer-three-quarters', 'fa fa-thumb-tack', 'fa fa-thumbs-down', 'fa fa-thumbs-o-down', 'fa fa-thumbs-o-up', 'fa fa-thumbs-up', 'fa fa-ticket', 'fa fa-times', 'fa fa-times-circle', 'fa fa-times-circle-o', 'fa fa-times-rectangle', 'fa fa-times-rectangle-o', 'fa fa-tint', 'fa fa-toggle-down', 'fa fa-toggle-left', 'fa fa-toggle-off', 'fa fa-toggle-on', 'fa fa-toggle-right', 'fa fa-toggle-up', 'fa fa-trademark', 'fa fa-trash', 'fa fa-trash-o', 'fa fa-tree', 'fa fa-trophy', 'fa fa-truck', 'fa fa-tty', 'fa fa-tv', 'fa fa-umbrella', 'fa fa-universal-access', 'fa fa-university', 'fa fa-unlock', 'fa fa-unlock-alt', 'fa fa-unsorted', 'fa fa-upload', 'fa fa-user', 'fa fa-user-circle', 'fa fa-user-circle-o', 'fa fa-user-o', 'fa fa-user-plus', 'fa fa-user-secret', 'fa fa-user-times', 'fa fa-users', 'fa fa-vcard', 'fa fa-vcard-o', 'fa fa-video-camera', 'fa fa-volume-control-phone', 'fa fa-volume-down', 'fa fa-volume-off', 'fa fa-volume-up', 'fa fa-warning', 'fa fa-wheelchair', 'fa fa-wheelchair-alt', 'fa fa-wifi', 'fa fa-window-close', 'fa fa-window-close-o', 'fa fa-window-maximize', 'fa fa-window-minimize', 'fa fa-window-restore', 'fa fa-wrench'],
    '辅助功能': ['fa fa-american-sign-language-interpreting', 'fa fa-asl-interpreting', 'fa fa-assistive-listening-systems', 'fa fa-audio-description', 'fa fa-blind', 'fa fa-braille', 'fa fa-cc', 'fa fa-deaf', 'fa fa-deafness', 'fa fa-hard-of-hearing', 'fa fa-low-vision', 'fa fa-question-circle-o', 'fa fa-sign-language', 'fa fa-signing', 'fa fa-tty', 'fa fa-universal-access', 'fa fa-volume-control-phone', 'fa fa-wheelchair', 'fa fa-wheelchair-alt'],
    '手势': ['fa fa-hand-grab-o', 'fa fa-hand-lizard-o', 'fa fa-hand-o-down', 'fa fa-hand-o-left', 'fa fa-hand-o-right', 'fa fa-hand-o-up', 'fa fa-hand-paper-o', 'fa fa-hand-peace-o', 'fa fa-hand-pointer-o', 'fa fa-hand-rock-o', 'fa fa-hand-scissors-o', 'fa fa-hand-spock-o', 'fa fa-hand-stop-o', 'fa fa-thumbs-down', 'fa fa-thumbs-o-down', 'fa fa-thumbs-o-up', 'fa fa-thumbs-up'],
    '运输': ['fa fa-ambulance', 'fa fa-automobile', 'fa fa-bicycle', 'fa fa-bus', 'fa fa-cab', 'fa fa-car', 'fa fa-fighter-jet', 'fa fa-motorcycle', 'fa fa-plane', 'fa fa-rocket', 'fa fa-ship', 'fa fa-space-shuttle', 'fa fa-subway', 'fa fa-taxi', 'fa fa-train', 'fa fa-truck', 'fa fa-wheelchair', 'fa fa-wheelchair-alt'],
    '性别': ['fa fa-genderless', 'fa fa-intersex', 'fa fa-mars', 'fa fa-mars-double', 'fa fa-mars-stroke', 'fa fa-mars-stroke-h', 'fa fa-mars-stroke-v', 'fa fa-mercury', 'fa fa-neuter', 'fa fa-transgender', 'fa fa-transgender-alt', 'fa fa-venus', 'fa fa-venus-double', 'fa fa-venus-mars'],
    '文件类型': ['fa fa-file', 'fa fa-file-archive-o', 'fa fa-file-audio-o', 'fa fa-file-code-o', 'fa fa-file-excel-o', 'fa fa-file-image-o', 'fa fa-file-movie-o', 'fa fa-file-o', 'fa fa-file-pdf-o', 'fa fa-file-photo-o', 'fa fa-file-picture-o', 'fa fa-file-powerpoint-o', 'fa fa-file-sound-o', 'fa fa-file-text', 'fa fa-file-text-o', 'fa fa-file-video-o', 'fa fa-file-word-o', 'fa fa-file-zip-o'],
    '可旋转': ['fa fa-circle-o-notch', 'fa fa-cog', 'fa fa-gear', 'fa fa-refresh', 'fa fa-spinner'],
    '表单': ['fa fa-check-square', 'fa fa-check-square-o', 'fa fa-circle', 'fa fa-circle-o', 'fa fa-dot-circle-o', 'fa fa-minus-square', 'fa fa-minus-square-o', 'fa fa-plus-square', 'fa fa-plus-square-o', 'fa fa-square', 'fa fa-square-o'],
    '支付': ['fa fa-cc-amex', 'fa fa-cc-diners-club', 'fa fa-cc-discover', 'fa fa-cc-jcb', 'fa fa-cc-mastercard', 'fa fa-cc-paypal', 'fa fa-cc-stripe', 'fa fa-cc-visa', 'fa fa-credit-card', 'fa fa-credit-card-alt', 'fa fa-google-wallet', 'fa fa-paypal'],
    '图表': ['fa fa-area-chart', 'fa fa-bar-chart', 'fa fa-bar-chart-o', 'fa fa-line-chart', 'fa fa-pie-chart'],
    '货币': ['fa fa-bitcoin', 'fa fa-btc', 'fa fa-cny', 'fa fa-dollar', 'fa fa-eur', 'fa fa-euro', 'fa fa-gbp', 'fa fa-gg', 'fa fa-gg-circle', 'fa fa-ils', 'fa fa-inr', 'fa fa-jpy', 'fa fa-krw', 'fa fa-money', 'fa fa-rmb', 'fa fa-rouble', 'fa fa-rub', 'fa fa-ruble', 'fa fa-rupee', 'fa fa-shekel', 'fa fa-sheqel', 'fa fa-try', 'fa fa-turkish-lira', 'fa fa-usd', 'fa fa-won', 'fa fa-yen'],
    '文本编辑': ['fa fa-align-center', 'fa fa-align-justify', 'fa fa-align-left', 'fa fa-align-right', 'fa fa-bold', 'fa fa-chain', 'fa fa-chain-broken', 'fa fa-clipboard', 'fa fa-columns', 'fa fa-copy', 'fa fa-cut', 'fa fa-dedent', 'fa fa-eraser', 'fa fa-file', 'fa fa-file-o', 'fa fa-file-text', 'fa fa-file-text-o', 'fa fa-files-o', 'fa fa-floppy-o', 'fa fa-font', 'fa fa-header', 'fa fa-indent', 'fa fa-italic', 'fa fa-link', 'fa fa-list', 'fa fa-list-alt', 'fa fa-list-ol', 'fa fa-list-ul', 'fa fa-outdent', 'fa fa-paperclip', 'fa fa-paragraph', 'fa fa-paste', 'fa fa-repeat', 'fa fa-rotate-left', 'fa fa-rotate-right', 'fa fa-save', 'fa fa-scissors', 'fa fa-strikethrough', 'fa fa-subscript', 'fa fa-superscript', 'fa fa-table', 'fa fa-text-height', 'fa fa-text-width', 'fa fa-th', 'fa fa-th-large', 'fa fa-th-list', 'fa fa-underline', 'fa fa-undo', 'fa fa-unlink'],
    '指示方向': ['fa fa-angle-double-down', 'fa fa-angle-double-left', 'fa fa-angle-double-right', 'fa fa-angle-double-up', 'fa fa-angle-down', 'fa fa-angle-left', 'fa fa-angle-right', 'fa fa-angle-up', 'fa fa-arrow-circle-down', 'fa fa-arrow-circle-left', 'fa fa-arrow-circle-o-down', 'fa fa-arrow-circle-o-left', 'fa fa-arrow-circle-o-right', 'fa fa-arrow-circle-o-up', 'fa fa-arrow-circle-right', 'fa fa-arrow-circle-up', 'fa fa-arrow-down', 'fa fa-arrow-left', 'fa fa-arrow-right', 'fa fa-arrow-up', 'fa fa-arrows', 'fa fa-arrows-alt', 'fa fa-arrows-h', 'fa fa-arrows-v', 'fa fa-caret-down', 'fa fa-caret-left', 'fa fa-caret-right', 'fa fa-caret-square-o-down', 'fa fa-caret-square-o-left', 'fa fa-caret-square-o-right', 'fa fa-caret-square-o-up', 'fa fa-caret-up', 'fa fa-chevron-circle-down', 'fa fa-chevron-circle-left', 'fa fa-chevron-circle-right', 'fa fa-chevron-circle-up', 'fa fa-chevron-down', 'fa fa-chevron-left', 'fa fa-chevron-right', 'fa fa-chevron-up', 'fa fa-exchange', 'fa fa-hand-o-down', 'fa fa-hand-o-left', 'fa fa-hand-o-right', 'fa fa-hand-o-up', 'fa fa-long-arrow-down', 'fa fa-long-arrow-left', 'fa fa-long-arrow-right', 'fa fa-long-arrow-up', 'fa fa-toggle-down', 'fa fa-toggle-left', 'fa fa-toggle-right', 'fa fa-toggle-up'],
    '视频播放': ['fa fa-arrows-alt', 'fa fa-backward', 'fa fa-compress', 'fa fa-eject', 'fa fa-expand', 'fa fa-fast-backward', 'fa fa-fast-forward', 'fa fa-forward', 'fa fa-pause', 'fa fa-pause-circle', 'fa fa-pause-circle-o', 'fa fa-play', 'fa fa-play-circle', 'fa fa-play-circle-o', 'fa fa-random', 'fa fa-step-backward', 'fa fa-step-forward', 'fa fa-stop', 'fa fa-stop-circle', 'fa fa-stop-circle-o', 'fa fa-youtube-play'],
    '标志': ['fa fa-500px', 'fa fa-adn', 'fa fa-amazon', 'fa fa-android', 'fa fa-angellist', 'fa fa-apple', 'fa fa-bandcamp', 'fa fa-behance', 'fa fa-behance-square', 'fa fa-bitbucket', 'fa fa-bitbucket-square', 'fa fa-bitcoin', 'fa fa-black-tie', 'fa fa-bluetooth', 'fa fa-bluetooth-b', 'fa fa-btc', 'fa fa-buysellads', 'fa fa-cc-amex', 'fa fa-cc-diners-club', 'fa fa-cc-discover', 'fa fa-cc-jcb', 'fa fa-cc-mastercard', 'fa fa-cc-paypal', 'fa fa-cc-stripe', 'fa fa-cc-visa', 'fa fa-chrome', 'fa fa-codepen', 'fa fa-codiepie', 'fa fa-connectdevelop', 'fa fa-contao', 'fa fa-css3', 'fa fa-dashcube', 'fa fa-delicious', 'fa fa-deviantart', 'fa fa-digg', 'fa fa-dribbble', 'fa fa-dropbox', 'fa fa-drupal', 'fa fa-edge', 'fa fa-eercast', 'fa fa-empire', 'fa fa-envira', 'fa fa-etsy', 'fa fa-expeditedssl', 'fa fa-fa', 'fa fa-facebook', 'fa fa-facebook-f', 'fa fa-facebook-official', 'fa fa-facebook-square', 'fa fa-firefox', 'fa fa-first-order', 'fa fa-flickr', 'fa fa-font-awesome', 'fa fa-fonticons', 'fa fa-fort-awesome', 'fa fa-forumbee', 'fa fa-foursquare', 'fa fa-free-code-camp', 'fa fa-ge', 'fa fa-get-pocket', 'fa fa-gg', 'fa fa-gg-circle', 'fa fa-git', 'fa fa-git-square', 'fa fa-github', 'fa fa-github-alt', 'fa fa-github-square', 'fa fa-gitlab', 'fa fa-gittip', 'fa fa-glide', 'fa fa-glide-g', 'fa fa-google', 'fa fa-google-plus', 'fa fa-google-plus-circle', 'fa fa-google-plus-official', 'fa fa-google-plus-square', 'fa fa-google-wallet', 'fa fa-gratipay', 'fa fa-grav', 'fa fa-hacker-news', 'fa fa-houzz', 'fa fa-html5', 'fa fa-imdb', 'fa fa-instagram', 'fa fa-internet-explorer', 'fa fa-ioxhost', 'fa fa-joomla', 'fa fa-jsfiddle', 'fa fa-lastfm', 'fa fa-lastfm-square', 'fa fa-leanpub', 'fa fa-linkedin', 'fa fa-linkedin-square', 'fa fa-linode', 'fa fa-linux', 'fa fa-maxcdn', 'fa fa-meanpath', 'fa fa-medium', 'fa fa-meetup', 'fa fa-mixcloud', 'fa fa-modx', 'fa fa-odnoklassniki', 'fa fa-odnoklassniki-square', 'fa fa-opencart', 'fa fa-openid', 'fa fa-opera', 'fa fa-optin-monster', 'fa fa-pagelines', 'fa fa-paypal', 'fa fa-pied-piper', 'fa fa-pied-piper-alt', 'fa fa-pied-piper-pp', 'fa fa-pinterest', 'fa fa-pinterest-p', 'fa fa-pinterest-square', 'fa fa-product-hunt', 'fa fa-qq', 'fa fa-quora', 'fa fa-ra', 'fa fa-ravelry', 'fa fa-rebel', 'fa fa-reddit', 'fa fa-reddit-alien', 'fa fa-reddit-square', 'fa fa-renren', 'fa fa-resistance', 'fa fa-safari', 'fa fa-scribd', 'fa fa-sellsy', 'fa fa-share-alt', 'fa fa-share-alt-square', 'fa fa-shirtsinbulk', 'fa fa-simplybuilt', 'fa fa-skyatlas', 'fa fa-skype', 'fa fa-slack', 'fa fa-slideshare', 'fa fa-snapchat', 'fa fa-snapchat-ghost', 'fa fa-snapchat-square', 'fa fa-soundcloud', 'fa fa-spotify', 'fa fa-stack-exchange', 'fa fa-stack-overflow', 'fa fa-steam', 'fa fa-steam-square', 'fa fa-stumbleupon', 'fa fa-stumbleupon-circle', 'fa fa-superpowers', 'fa fa-telegram', 'fa fa-tencent-weibo', 'fa fa-themeisle', 'fa fa-trello', 'fa fa-tripadvisor', 'fa fa-tumblr', 'fa fa-tumblr-square', 'fa fa-twitch', 'fa fa-twitter', 'fa fa-twitter-square', 'fa fa-usb', 'fa fa-viacoin', 'fa fa-viadeo', 'fa fa-viadeo-square', 'fa fa-vimeo', 'fa fa-vimeo-square', 'fa fa-vine', 'fa fa-vk', 'fa fa-wechat', 'fa fa-weibo', 'fa fa-weixin', 'fa fa-whatsapp', 'fa fa-wikipedia-w', 'fa fa-windows', 'fa fa-wordpress', 'fa fa-wpbeginner', 'fa fa-wpexplorer', 'fa fa-wpforms', 'fa fa-xing', 'fa fa-xing-square', 'fa fa-y-combinator', 'fa fa-y-combinator-square', 'fa fa-yahoo', 'fa fa-yc', 'fa fa-yc-square', 'fa fa-yelp', 'fa fa-yoast', 'fa fa-youtube', 'fa fa-youtube-play', 'fa fa-youtube-square'],
    '医疗': ['fa fa-ambulance', 'fa fa-h-square', 'fa fa-heart', 'fa fa-heart-o', 'fa fa-heartbeat', 'fa fa-hospital-o', 'fa fa-medkit', 'fa fa-plus-square', 'fa fa-stethoscope', 'fa fa-user-md', 'fa fa-wheelchair', 'fa fa-wheelchair-alt'],
    '阿里图标': ['icon iconfont icon-group', 'icon iconfont icon-icon', 'icon iconfont icon-mendian', 'icon iconfont icon-huancun', 'icon iconfont icon-huancunqingli', 'icon iconfont icon-iconfontshuaxin', 'icon iconfont icon-weixinxiaoximoban', 'icon iconfont icon-xiaodian', 'icon iconfont icon-weixinmobanxiaoxi', 'icon iconfont icon-xiaozhushouduanwangzhiguanli', 'icon iconfont icon-xiaozhushouduanwangzhiguanli1', 'icon iconfont icon-weixinxiaoxi', 'icon iconfont icon-xiaodian1', 'icon iconfont icon-tubiao15', 'icon iconfont icon-weixinyonghu', 'icon iconfont icon-weixincaidan', 'icon iconfont icon-xiaochengxu', 'icon iconfont icon-zidonghuifu', 'icon iconfont icon-yonghubiaoqian', 'icon iconfont icon-m-usergroup', 'icon iconfont icon-xiaochengxu1', 'icon iconfont icon-shangpin', 'icon iconfont icon-zhiliang', 'icon iconfont icon-anquanbaozhang', 'icon iconfont icon-jifen', 'icon iconfont icon-guize', 'icon iconfont icon-zuzhijiagoujiekou', 'icon iconfont icon--fuwu', 'icon iconfont icon-tongbuweixin', 'icon iconfont icon-yuyilijie', 'icon iconfont icon-caidanguanli', 'icon iconfont icon-accessory', 'icon iconfont icon-activity', 'icon iconfont icon-activity_fill', 'icon iconfont icon-add', 'icon iconfont icon-addition_fill', 'icon iconfont icon-addition', 'icon iconfont icon-addpeople_fill', 'icon iconfont icon-addpeople', 'icon iconfont icon-addressbook_fill', 'icon iconfont icon-addressbook', 'icon iconfont icon-barrage_fill', 'icon iconfont icon-barrage', 'icon iconfont icon-browse_fill', 'icon iconfont icon-browse', 'icon iconfont icon-brush', 'icon iconfont icon-brush_fill', 'icon iconfont icon-businesscard_fill', 'icon iconfont icon-businesscard', 'icon iconfont icon-camera_fill', 'icon iconfont icon-camera', 'icon iconfont icon-clock_fill', 'icon iconfont icon-clock', 'icon iconfont icon-close', 'icon iconfont icon-collection_fill', 'icon iconfont icon-collection', 'icon iconfont icon-computer_fill', 'icon iconfont icon-computer', 'icon iconfont icon-coordinates_fill', 'icon iconfont icon-coordinates', 'icon iconfont icon-coupons_fill', 'icon iconfont icon-coupons', 'icon iconfont icon-createtask_fill', 'icon iconfont icon-createtask', 'icon iconfont icon-customerservice_fill', 'icon iconfont icon-customerservice', 'icon iconfont icon-delete_fill', 'icon iconfont icon-delete', 'icon iconfont icon-document', 'icon iconfont icon-document_fill', 'icon iconfont icon-dynamic_fill', 'icon iconfont icon-dynamic', 'icon iconfont icon-editor', 'icon iconfont icon-eit', 'icon iconfont icon-emoji_fill', 'icon iconfont icon-emoji', 'icon iconfont icon-empty', 'icon iconfont icon-empty_fill', 'icon iconfont icon-enter', 'icon iconfont icon-enterinto', 'icon iconfont icon-enterinto_fill', 'icon iconfont icon-feedback_fill', 'icon iconfont icon-feedback', 'icon iconfont icon-flag_fill', 'icon iconfont icon-flag', 'icon iconfont icon-flashlight', 'icon iconfont icon-flashlight_fill', 'icon iconfont icon-flip', 'icon iconfont icon-flip_fill', 'icon iconfont icon-fullscreen', 'icon iconfont icon-group1', 'icon iconfont icon-group_fill', 'icon iconfont icon-headlines_fill', 'icon iconfont icon-headlines', 'icon iconfont icon-homepage_fill', 'icon iconfont icon-homepage', 'icon iconfont icon-integral_fill', 'icon iconfont icon-integral', 'icon iconfont icon-interactive_fill', 'icon iconfont icon-interactive', 'icon iconfont icon-keyboard', 'icon iconfont icon-label', 'icon iconfont icon-label_fill', 'icon iconfont icon-like_fill', 'icon iconfont icon-like', 'icon iconfont icon-live_fill', 'icon iconfont icon-live', 'icon iconfont icon-lock_fill', 'icon iconfont icon-lock', 'icon iconfont icon-mail', 'icon iconfont icon-mail_fill', 'icon iconfont icon-manage_fill', 'icon iconfont icon-manage', 'icon iconfont icon-message', 'icon iconfont icon-message_fill', 'icon iconfont icon-mine', 'icon iconfont icon-mine_fill', 'icon iconfont icon-mobilephone_fill', 'icon iconfont icon-mobilephone', 'icon iconfont icon-more', 'icon iconfont icon-narrow', 'icon iconfont icon-offline_fill', 'icon iconfont icon-offline', 'icon iconfont icon-order_fill', 'icon iconfont icon-order', 'icon iconfont icon-other', 'icon iconfont icon-people_fill', 'icon iconfont icon-people', 'icon iconfont icon-picture_fill', 'icon iconfont icon-picture', 'icon iconfont icon-play', 'icon iconfont icon-play_fill', 'icon iconfont icon-playon_fill', 'icon iconfont icon-playon', 'icon iconfont icon-praise_fill', 'icon iconfont icon-praise', 'icon iconfont icon-prompt_fill', 'icon iconfont icon-prompt', 'icon iconfont icon-qrcode_fill', 'icon iconfont icon-qrcode', 'icon iconfont icon-redpacket_fill', 'icon iconfont icon-redpacket', 'icon iconfont icon-refresh', 'icon iconfont icon-remind_fill', 'icon iconfont icon-remind', 'icon iconfont icon-return', 'icon iconfont icon-right', 'icon iconfont icon-scan', 'icon iconfont icon-select_fill', 'icon iconfont icon-select', 'icon iconfont icon-send', 'icon iconfont icon-service_fill', 'icon iconfont icon-service', 'icon iconfont icon-setup_fill', 'icon iconfont icon-setup', 'icon iconfont icon-share_fill', 'icon iconfont icon-share', 'icon iconfont icon-shielding_fill', 'icon iconfont icon-shielding', 'icon iconfont icon-smallscreen_fill', 'icon iconfont icon-smallscreen', 'icon iconfont icon-stealth_fill', 'icon iconfont icon-stealth', 'icon iconfont icon-success_fill', 'icon iconfont icon-success', 'icon iconfont icon-suspend', 'icon iconfont icon-switch', 'icon iconfont icon-systemprompt_fill', 'icon iconfont icon-systemprompt', 'icon iconfont icon-tailor', 'icon iconfont icon-task', 'icon iconfont icon-task_fill', 'icon iconfont icon-tasklist_fill', 'icon iconfont icon-tasklist', 'icon iconfont icon-text', 'icon iconfont icon-time_fill', 'icon iconfont icon-time', 'icon iconfont icon-translation_fill', 'icon iconfont icon-translation', 'icon iconfont icon-trash', 'icon iconfont icon-trash_fill', 'icon iconfont icon-undo', 'icon iconfont icon-unlock_fill', 'icon iconfont icon-unlock', 'icon iconfont icon-video', 'icon iconfont icon-video_fill', 'icon iconfont icon-warning_fill', 'icon iconfont icon-warning', 'icon iconfont icon-workbench_fill', 'icon iconfont icon-workbench', 'icon iconfont icon-search', 'icon iconfont icon-searchfill', 'icon iconfont icon-caidanfenzu', 'icon iconfont icon-publishgoods_fill', 'icon iconfont icon-shop_fill', 'icon iconfont icon-transaction_fill', 'icon iconfont icon-packup', 'icon iconfont icon-unfold', 'icon iconfont icon-wangwang', 'icon iconfont icon-financial_fill', 'icon iconfont icon-marketing_fill', 'icon iconfont icon-shake', 'icon iconfont icon-decoration_fill', 'icon iconfont icon-xiaoxizidonghuifu', 'icon iconfont icon-weixincaidan1', 'icon iconfont icon-xiaoxizidonghuifu1', 'icon iconfont icon-xiaochengxu2', 'icon iconfont icon-weixinkefu', 'icon iconfont icon-weixinkefu1', 'icon iconfont icon-weixinerweimaguanli', 'icon iconfont icon-weixinsucaiguanli', 'icon iconfont icon-weixinhongbaohuodongguanli', 'icon iconfont icon-weixinxiaoxi1', 'icon iconfont icon-weixinqunfa', 'icon iconfont icon-weixinzhifu', 'icon iconfont icon-wxkq', 'icon iconfont icon-zidonghuifu1', 'icon iconfont icon-icon_act_open', 'icon iconfont icon-icon_addperson_fill', 'icon iconfont icon-icon_annex', 'icon iconfont icon-icon_airplay', 'icon iconfont icon-icon_addperson', 'icon iconfont icon-icon_boss_fill', 'icon iconfont icon-icon_calendar_fill', 'icon iconfont icon-icon_camera_fill', 'icon iconfont icon-icon_approval_fill', 'icon iconfont icon-icon_checkbox_fill', 'icon iconfont icon-icon_certification_f', 'icon iconfont icon-icon_clock_fill', 'icon iconfont icon-icon_clock', 'icon iconfont icon-icon_closeeye', 'icon iconfont icon-icon_collect_fill', 'icon iconfont icon-icon_cloudup', 'icon iconfont icon-icon_cmail', 'icon iconfont icon-icon_contact_fill', 'icon iconfont icon-icon_community', 'icon iconfont icon-icon_dail_fill', 'icon iconfont icon-icon_conf_video_fill', 'icon iconfont icon-icon_delete_fill', 'icon iconfont icon-icon_delete', 'icon iconfont icon-icon_details', 'icon iconfont icon-icon_ding_fill', 'icon iconfont icon-icon_eye', 'icon iconfont icon-icon_face_fill', 'icon iconfont icon-icon_face', 'icon iconfont icon-icon_doc_fill', 'icon iconfont icon-icon_download', 'icon iconfont icon-icon_doc', 'icon iconfont icon-icon_filter_fill', 'icon iconfont icon-icon_female_fill', 'icon iconfont icon-icon_file', 'icon iconfont icon-icon_filter', 'icon iconfont icon-icon_file_fill', 'icon iconfont icon-icon_foot_fill', 'icon iconfont icon-icon_full_screen', 'icon iconfont icon-icon_gift_fill', 'icon iconfont icon-icon_glass', 'icon iconfont icon-icon_goodmorning', 'icon iconfont icon-icon_hardware', 'icon iconfont icon-icon_goodnight', 'icon iconfont icon-icon_horn', 'icon iconfont icon-icon_inbox_fill', 'icon iconfont icon-icon_index', 'icon iconfont icon-icon_invite_fill', 'icon iconfont icon-icon_inform_fill', 'icon iconfont icon-icon_iPad', 'icon iconfont icon-icon_likegood', 'icon iconfont icon-icon_location_fill', 'icon iconfont icon-icon_link', 'icon iconfont icon-icon_lock_fill', 'icon iconfont icon-icon_male_fill', 'icon iconfont icon-icon_manage_fill', 'icon iconfont icon-icon_meeting_signin_', 'icon iconfont icon-icon_Mac', 'icon iconfont icon-icon_meeting_fill', 'icon iconfont icon-icon_message_fill', 'icon iconfont icon-icon_mobilephone', 'icon iconfont icon-icon_message', 'icon iconfont icon-icon_mute', 'icon iconfont icon-icon_more', 'icon iconfont icon-icon_nonotice', 'icon iconfont icon-icon_PC', 'icon iconfont icon-icon_people_fill', 'icon iconfont icon-icon_photo', 'icon iconfont icon-icon_photo_fill', 'icon iconfont icon-icon_ping_fill', 'icon iconfont icon-icon_QRcode', 'icon iconfont icon-icon_right_fill', 'icon iconfont icon-icon_recorder_fill', 'icon iconfont icon-icon_question', 'icon iconfont icon-icon_roundadd', 'icon iconfont icon-icon_roundarrow_left', 'icon iconfont icon-icon_roundclose_fill', 'icon iconfont icon-icon_roundreduce', 'icon iconfont icon-icon_safety_fill', 'icon iconfont icon-icon_search', 'icon iconfont icon-icon_scan', 'icon iconfont icon-icon_sendfile', 'icon iconfont icon-icon_seelog_fill', 'icon iconfont icon-icon_send_fill', 'icon iconfont icon-icon_secretbubble', 'icon iconfont icon-icon_setting_fill', 'icon iconfont icon-icon_shakehands', 'icon iconfont icon-icon_share', 'icon iconfont icon-icon_service_fill', 'icon iconfont icon-icon_setting', 'icon iconfont icon-icon_shield', 'icon iconfont icon-icon_signin_fill', 'icon iconfont icon-icon_statistics_fill', 'icon iconfont icon-icon_square', 'icon iconfont icon-icon_sim_fill', 'icon iconfont icon-icon_star_fill', 'icon iconfont icon-icon_study_fill', 'icon iconfont icon-icon_subordinate', 'icon iconfont icon-icon_task_fill', 'icon iconfont icon-icon_sunglasses', 'icon iconfont icon-icon_switchcamera', 'icon iconfont icon-icon_task', 'icon iconfont icon-icon_task_done_fill', 'icon iconfont icon-icon_threeline_fill', 'icon iconfont icon-icon_transpond', 'icon iconfont icon-icon_trashcan', 'icon iconfont icon-icon_wifiwarning_fill', 'icon iconfont icon-icon_work_fill', 'icon iconfont icon-icon_video_fill', 'icon iconfont icon-icon_warning', 'icon iconfont icon-icon_wifi_fill', 'icon iconfont icon-icon_writelog_fill', 'icon iconfont icon-icon_cspace_fill', 'icon iconfont icon-icon_dmail_fill', 'icon iconfont icon-icon_add', 'icon iconfont icon-icon_found', 'icon iconfont icon-icon_group', 'icon iconfont icon-icon_notice', 'icon iconfont icon-icon_redpacket_fill', 'icon iconfont icon-icon_tie', 'icon iconfont icon-icon_signal', 'icon iconfont icon-icon_safety', 'icon iconfont icon-icon_home', 'icon iconfont icon-icon_briefcase', 'icon iconfont icon-icon_at', 'icon iconfont icon-icon_camera', 'icon iconfont icon-icon_cspace', 'icon iconfont icon-icon_trashcan_fill', 'icon iconfont icon-icon_glass_fill', 'icon iconfont icon-icon_notice_fill', 'icon iconfont icon-icon_workmore', 'icon iconfont icon-icon_atention_fill', 'icon iconfont icon-icon_hardware_fill', 'icon iconfont icon-icon_excel_fill', 'icon iconfont icon-icon_mobilephone_fill', 'icon iconfont icon-icon_group_fill', 'icon iconfont icon-icon_phone', 'icon iconfont icon-icon_phone_fill', 'icon iconfont icon-icon_roundarrow_righ', 'icon iconfont icon-icon_square_fill', 'icon iconfont icon-icon_shakehands_fill', 'icon iconfont icon-icon_secretbubble_fill', 'icon iconfont icon-icon_secret_fill', 'icon iconfont icon-icon_addresslist_fill', 'icon iconfont icon-icon_addressbook_fil', 'icon iconfont icon-icon_question_fill', 'icon iconfont icon-icon_minimize', 'icon iconfont icon-icon_live_fill', 'icon iconfont icon-icon_board_fill', 'icon iconfont icon-icon_sport', 'icon iconfont icon-icon_flashlight_off', 'icon iconfont icon-icon_flashlight_on', 'icon iconfont icon-icon_focusover', 'icon iconfont icon-icon_focusoff', 'icon iconfont icon-icon_focuson', 'icon iconfont icon-icon_compile', 'icon iconfont icon-icon_gm_fill', 'icon iconfont icon-icon_cmail1', 'icon iconfont icon-icon_dmail_fill1', 'icon iconfont icon-icon_dail_up_fill', 'icon iconfont icon-icon_addressbook_head_fill', 'icon iconfont icon-icon_checkbox_select', 'icon iconfont icon-icon_videoplay', 'icon iconfont icon-icon_music', 'icon iconfont icon-icon_module', 'icon iconfont icon-icon_zip', 'icon iconfont icon-weixinhongbaoyingxiao', 'icon iconfont icon-weixinerweima', 'icon iconfont icon-icon_a_fill', 'icon iconfont icon-icon_voice_fill', 'icon iconfont icon-icon_hr_fill', 'icon iconfont icon-icon_conference', 'icon iconfont icon-icon_empty_ding', 'icon iconfont icon-icon_Aa_fill', 'icon iconfont icon-icon_vip_fill', 'icon iconfont icon-icon_dmail', 'icon iconfont icon-icon_collect', 'icon iconfont icon-icon_otherapp', 'icon iconfont icon-icon_suspend', 'icon iconfont icon-icon_move', 'icon iconfont icon-icon_dail_fill1', 'icon iconfont icon-icon_dail_up_fill1', 'icon iconfont icon-icon_roundclose', 'icon iconfont icon-icon_workphone', 'icon iconfont icon-icon_invite', 'icon iconfont icon-icon_C_unlink', 'icon iconfont icon-icon_ding', 'icon iconfont icon-icon_subordinate_fil', 'icon iconfont icon-icon_nocertification', 'icon iconfont icon-icon_PC1', 'icon iconfont icon-icon_delete_fill1', 'icon iconfont icon-icon_work', 'icon iconfont icon-icon_down', 'icon iconfont icon-icon_up', 'icon iconfont icon-icon_right', 'icon iconfont icon-icon_conf_call_fill', 'icon iconfont icon-icon_bubble_smile', 'icon iconfont icon-icon_bubble_smile_fi', 'icon iconfont icon-icon_cc_fill', 'icon iconfont icon-icon_chat_switch_to_', 'icon iconfont icon-icon_chat_switch_to_1', 'icon iconfont icon-SCRM_weixinqiaquan', 'icon iconfont icon-user', 'icon iconfont icon-add-user', 'icon iconfont icon-remove-user', 'icon iconfont icon-edit-user', 'icon iconfont icon-setting-user', 'icon iconfont icon-user-approval', 'icon iconfont icon-user-list', 'icon iconfont icon-role', 'icon iconfont icon-remove-role', 'icon iconfont icon-add-role', 'icon iconfont icon-setting-role', 'icon iconfont icon-edit-role', 'icon iconfont icon-role-list', 'icon iconfont icon-user-group', 'icon iconfont icon-role-group', 'icon iconfont icon-permissions-user', 'icon iconfont icon-permissions', 'icon iconfont icon-edit-permissions', 'icon iconfont icon-add-permissions', 'icon iconfont icon-remove-permissions', 'icon iconfont icon-permissions-list', 'icon iconfont icon-setting-permissions']
};

//初始化树结构
var initTree = function initTree() {
    var group_id = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0;

    var tree_data = {};
    utils.ajaxGet(page_params.url_list, { 'group_id': group_id }, function (response, data) {
        if (response.data.menuList) {
            tree_data = response.data.menuList;
            $('#tree').treeview({ data: tree_data, levels: 2, showTags: !0, collapseIcon: 'fa fa-chevron-down', expandIcon: 'fa fa-chevron-right' });
            //绑定选中事件
            $('#tree').on('nodeSelected', function (event, data) {
                asxBox = layer.open({
                    type: 1,
                    title: '菜单操作',
                    anim: 2,
                    shadeClose: true, //开启遮罩关闭
                    skin: 'layui-layer-molv', //加上边框
                    area: ['520px', '150px'], //宽高
                    content: $('#box_ask')
                });
                nowNode = data;
            });
        }
    });
};

$(document).ready(function () {
    //图标选择器
    var iconPicker = $('#icon_class').fontIconPicker({
        source: fa_icons,
        searchSource: fa_icons,
        //useAttribute: true,
        theme: 'fip-bootstrap',
        //attributeName: 'data-icomoon',
        emptyIconValue: 'none',
        allCategoryText: '全部图标',
        iconsPerPage: 20
    });
    //切换树结构
    initTree($("#group_id").val());
    //搜索重新刷新菜单
    $("#btn-search").on('click', function () {
        initTree($("#group_id").val());
    });
    //添加菜单
    $("#btn-add").on('click', function () {
        $("#box-form form").resetForm();
        $('#box-form form').attr('action', page_params.url_add);
        $("#box-form input[name='menu_id']").val(0);
        $("#box-form input[name='parent_id']").val(0);
        $("#box-form input[name='group_id']").val($("#group_id").val());
        iconPicker.refreshPicker();
        box = layer.open({
            type: 1,
            title: '添加【顶级菜单】',
            anim: 2,
            shadeClose: true, //开启遮罩关闭
            skin: 'layui-layer-molv', //加上边框
            area: ['620px', '600px'], //宽高
            content: $('#box-form')
        });
    });
    //添加子菜单
    $("#btn-add-child").on('click', function () {
        $("#box-form form").resetForm();
        $('#box-form form').attr('action', page_params.url_add);
        $("#box-form input[name='menu_id']").val(0);
        $("#box-form input[name='parent_id']").val(nowNode.menu_id);
        $("#box-form input[name='group_id']").val(nowNode.group_id);
        iconPicker.refreshPicker();
        box = layer.open({
            type: 1,
            title: '添加【' + nowNode.menu_name + '】子菜单',
            anim: 2,
            shadeClose: true, //开启遮罩关闭
            skin: 'layui-layer-molv', //加上边框
            area: ['620px', '600px'], //宽高
            content: $('#box-form')
        });
    });
    //编辑菜单
    $("#btn-edit").on('click', function () {
        $("#box-form form").resetForm();
        $('#box-form form').attr('action', page_params.url_edit);
        $("#box-form input[name='group_id']").val(nowNode.group_id);
        $("#box-form input[name='menu_id']").val(nowNode.menu_id);
        $("#box-form input[name='parent_id']").val(nowNode.parent_id);
        $("#box-form input[name='menu_name']").val(nowNode.menu_name);
        $("#box-form select[name='perm_id']").val(nowNode.perm_id);
        $("#box-form input[name='route_params']").val(nowNode.route_params);
        $("#box-form input[name='icon_class']").val(nowNode.icon_class);
        iconPicker.refreshPicker();
        $("#box-form textarea[name='description']").val(nowNode.description);
        $("#box-form input[name='order_num']").val(nowNode.order_num);
        box = layer.open({
            type: 1,
            title: '编辑【' + nowNode.menu_name + '】菜单',
            anim: 2,
            shadeClose: true, //开启遮罩关闭
            skin: 'layui-layer-molv', //加上边框
            area: ['620px', '600px'], //宽高
            content: $('#box-form')
        });
    });
    //提交表单
    $('#btn-sub').on('click', function () {
        utils.ajaxSubmitForm($("#box-form form"), '', {}, function (response, postdata) {
            data = response.data;
            utils.showToastr(data);
            if (data.status == 'success') {
                layer.close(box);
                layer.close(asxBox);
                initTree($("#group_id").val());
            }
        });
    });
    //删除
    $("#btn-del").on('click', function () {
        var menu_id = 0;
        if (nowNode) {
            menu_id = nowNode.menu_id;
        }
        utils.confirm(page_params.url_del, { 'menu_id': menu_id }, function (response, postdata) {
            data = response.data;
            utils.showToastr(data);
            if (data.status == 'success') {
                layer.close(asxBox);
                initTree($("#group_id").val());
            }
        });
    });
});

/***/ })

},[45]);